home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Overview / Signals / CTestSignal.make < prev    next >
Encoding:
Text File  |  1994-11-18  |  1.8 KB  |  66 lines  |  [TEXT/MPS ]

  1. #
  2. #    Apple Macintosh Developer Technical Support
  3. #
  4. #    Exception handling for MPW Pascal, MacApp and MPW C
  5. #
  6. #    UFailure (aka Signals) - “Exceptional code, with a few exceptions.”
  7. #
  8. #    CTestSignal.make    -    Makefile for C access to enhanced UFailure
  9. #
  10. #    Copyright © 1985-1988 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    Versions:    1.00                11/88
  14. #                1.01                06/92
  15. #
  16. #    Components:    CTestSignal.c        November 1, 1988
  17. #                CTestSignal.make    November 1, 1988
  18. #                PTestSignal.p        November 1, 1988
  19. #                PTestSignal.make    November 1, 1988
  20. #                UFailure.p            November 1, 1988
  21. #                UFailure.h            November 1, 1988
  22. #                UFailure.incl.p        November 1, 1988
  23. #                UFailure.a            November 1, 1988
  24. #
  25. #    UFailure (or Signals) is a set of exception handling routines suitable for
  26. #    use with MacApp, MPW C, and MPW Pascal. It is a jazzed-up version of the MacApp
  27. #    UFailure unit. There is a set of C interfaces to it as well.
  28. #
  29.  
  30. # turn on debugging information (use 0 to turn it off)
  31. AOptions = -d &Debug=1
  32. POptions = -d qDebug=TRUE -mbg ch8
  33. # if you set qDebug to FALSE you should use -mbg off
  34. COptions =  -mbg ch8
  35.  
  36. UFailure.o        ƒ    UFailure.p.o UFailure.a.o
  37.     Lib UFailure.p.o UFailure.a.o -o UFailure.o
  38.     
  39. UFailure.p.o ƒƒ UFailure.p UFailure.inc1.p
  40.     
  41. CTestSignal        ƒ    CTestSignal.c.o UFailure.o
  42.     If `Exists "{Libraries}"MacRuntime.o`
  43.         Link -w -c 'MPS ' -t MPST CTestSignal.c.o ∂
  44.             -sn STDIO=Main ∂
  45.             -sn INTENV=Main ∂
  46.             -sn %A5Init=Main ∂
  47.             UFailure.o ∂
  48.             "{Libraries}"MacRuntime.o ∂
  49.             "{Libraries}"IntEnv.o ∂
  50.             "{CLibraries}"StdCLib.o ∂
  51.             "{Libraries}"Interface.o ∂
  52.             "{Libraries}"ToolLibs.o ∂
  53.             -o CTestSignal
  54.     Else
  55.         Link -w -c 'MPS ' -t MPST CTestSignal.c.o ∂
  56.             -sn STDIO=Main ∂
  57.             -sn INTENV=Main ∂
  58.             -sn %A5Init=Main ∂
  59.             UFailure.o ∂
  60.             "{Libraries}"Runtime.o ∂
  61.             "{CLibraries}"StdCLib.o ∂
  62.             "{Libraries}"Interface.o ∂
  63.             "{Libraries}"ToolLibs.o ∂
  64.             -o CTestSignal
  65.     End
  66.